package tsg.event;

public class FocusEvent extends EventObject
{
	public static final int FOCUS_GAINED	= 1;
	public static final int FOCUS_LOST		= 2;
	
	public FocusEvent(Object source) 
	{
		super(source);
	}
	
	public FocusEvent(Object source, int type)
	{
		super(source);
		this.setType(type);
	}
	
	public int getType()
	{
		return _type;
	}
	
	public void setType(int type)
	{
		_type = type;
	}

	private int _type = -1;
}
